package com.zhuqi.dynamic.ds2.mapper;

import com.zhuqi.dynamic.domain.BatchImportUserNoAmountExcelVO;
import com.zhuqi.dynamic.domain.OrderDedu;
import com.zhuqi.dynamic.domain.SmartCanteenMessageRecharge;
import com.zhuqi.dynamic.domain.UserDao;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : ZhuQi
 * @version : 时间:2022/5/6 14:05 版本:
 */
public interface Ds2Mapper {

    void batchUpdateUser(@Param("list") ArrayList<UserDao> dataList);

    /**
     * 测试查询
     * @return
     */
    int selectUser(@Param("phoneNumber") String phoneNumber);

    void batchUpdateUserTime(ArrayList<UserDao> succList);

    ArrayList<BatchImportUserNoAmountExcelVO> selectUserFromNormal(int communityId);

    /**
     * 查询通用版黄金集团的用户
     * @param communityId
     * @return
     */
    ArrayList<UserDao> selectGoldUser(@Param("communityId") int communityId);

    OrderDedu selectOrderDedu(@Param("orderNo") String orderNo);

    /**
     * 查询餐补旧数据
     * @return
     */
    List<Integer> selectIdFromTable();

    /**
     * 根据ID 查询 餐补数据
     * @param idList ids
     * @return
     */
    ArrayList<SmartCanteenMessageRecharge> selectMealData(@Param("ids") List<Integer> idList);

    /**
     * 批量修改数据
     * @param smartCanteenMessageRecharges
     * @return
     */
    int batchUpdateMealRecharges(@Param("list") List<SmartCanteenMessageRecharge> smartCanteenMessageRecharges);

    /**
     * 查询餐补订单数据
     * @param orderNo
     * @return
     */
    SmartCanteenMessageRecharge selectOrderDate(@Param("orderNo") String orderNo);

    /**
     * 查询餐补订单数据
     * @param orderNo
     * @return
     */
    SmartCanteenMessageRecharge selectOrderDateHistory(@Param("orderNo")String orderNo);

    ArrayList<UserDao> selectNoAuthUser(@Param("communityId") int communityId);
}
